/*
 * @Author: your name
 * @Date: 2022-02-21 10:07:46
 * @LastEditTime: 2022-02-21 14:27:47
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \workflow-web\src\api\user.js
 */
import request from '@/utils/request'

export function login(data) {
  return request({
    url: `/login`,
    method: 'post',
    data
  })
}

export function refreshtoken(data) {
  return request({
    url: '/refreshtoken',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/api/v1/getinfo',
    method: 'get'
  })
}
export function wxLogin(data) {
  return request({
    url: '/wx/login',
    method: 'post',
    data
  })
}

export function logout() {
  return request({
    url: '/api/v1/logout',
    method: 'post'
  })
}
